package com.imooc.sell.dao;

import com.imooc.sell.dataobject.Remark;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface RemarkDao extends JpaRepository<Remark, String> {
    Page<Remark> findByOrderId(String orderId, Pageable pageable);

    List<Remark> findByOrderId(String orderId);

    Remark findByRemarkId(String remark);
}
